import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './style.css'
import 'virtual:windi.css'
// 引入权限控制js文件
import './permission'
// 引入进度条加载样式
import "nprogress/nprogress.css"
import store from './store'
import router from './router'
import App from './App.vue'
// 全局引入图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'



const app = createApp(App)
store.router = router
app.use(store).use(router)
app.use(router) 
app.use(ElementPlus)
app.mount('#app')

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
